package com.it.hanzhongtravelv1.repository;

import com.it.hanzhongtravelv1.entity.Accommodation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
 
@Repository
public interface AccommodationRepository extends JpaRepository<Accommodation, Long> {
    List<Accommodation> findByType(String type);
    List<Accommodation> findByLocationContaining(String location);
} 